﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.hud.components {
    import __AS3__.vec.*;

    public class HUDComponentContainer extends HUDComponent {

        protected var m_components:Vector.<HUDComponent>;

        public function HUDComponentContainer(){
            this.m_components = new Vector.<HUDComponent>();
            super();
        }
        public function addComponent(_arg1:HUDComponent):void{
            this.m_components.push(_arg1);
            addChild(_arg1);
        }
        override public function cleanUp():void{
            var _local1:HUDComponent;
            super.cleanUp();
            for each (_local1 in this.m_components) {
                _local1.cleanUp();
                if (_local1.parent){
                    _local1.parent.removeChild(_local1);
                };
            };
        }
        override public function refresh(_arg1:Boolean):void{
            var _local2:HUDComponent;
            for each (_local2 in this.m_components) {
                _local2.refresh(_arg1);
            };
        }
        public function getComponent(_arg1:Class):HUDComponent{
            var _local2:HUDComponent;
            for each (_local2 in this.m_components) {
                if ((_local2 is _arg1)){
                    return (_local2);
                };
            };
            return (null);
        }

    }
}//package Display.hud.components 
